import {
	request
} from '../request.js'

const addTask = (data) => {
	return request({
		url: '/cj_record/',
		method: 'put',
		data: data
	})
}

const getPrintContent = (taskId) => {
	return request({
		url: `/cj_record/get_print_content/${taskId}`,
		method: 'get'
	})
}

const getAddress = (data) => {
	return request({
		url: '/cj_record/get_address',
		method: 'get',
		data
	})
}

const previewImage = (data) => {
	return request({
		url: '/cj_record/preview',
		method: 'get',
		data
	})
}

const CjRecordApi = {
	addTask,
	getPrintContent,
	getAddress,
	previewImage
}

export default CjRecordApi;